<!DOCTYPE html>
<html>
<head>
	<title></title>
</head>
<body>

</body>
<script type="text/javascript">
	var arr = [1,2,3,9,8,7,65,4];
var sum;
for(var i in arr){
	sum+=arr[i];
}

function delArr(arr,item){
	for (var i = 0; i < arr.length; i++) {
	var _arr1 = [];
	for (var i = 0; i < arr.length; i++) {
		if(arr[i]!=item) _arr1.push(item);
	}
	}
}
arr.filter(function(item){
	return item!=3;
})
//选项卡：获取点击元素的索引，显示对应索引的内容元素

</script>
</html>